var heyuesong = {};
function B(n) {
    heyuesong.ma = n;
    for (var t = 0, r = n.length; t < r; t++)
    heyuesong[t] = 0
}
var sss = new B([2, 2, 4, 4, 4, 1, 1, 4, 4, 3, 2, 2, 2, 2, 2, 1, 2, 1, 1, 1, 1]);
console.log(heyuesong.ma)

function h(n) {
    for (var t = heyuesong.ma, r = 0, i = 0, a = t.length; i < a; i++) {
        var o = t[i]
          , e = 0;
        do {
            e = e << 8 | n[r++]
        } while (--o > 0);
        heyuesong[i] = e >>> 0
    }
}

function na() {
    console.log(heyuesong)
    for (var n = heyuesong.ma, t = [], r = -1, i = 0, a = n.length; i < a; i++)
        for (var o = heyuesong[i], e = n[i], c = r += e; t[c] = 255 & o,
        0 != --e; )
            --c,
            o >>= 8;
    return t
}

console.log(na())